﻿namespace MockingBird.Studio.UI
{
    using System;
    using System.Windows.Forms;

    partial class MessageBuilder
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.tvwWsdlBrowser = new MockingBird.Studio.UI.UserControls.WsdlTree();
            this.label1 = new System.Windows.Forms.Label();
            this.txtWsdlUrl = new System.Windows.Forms.TextBox();
            this.splitter1 = new System.Windows.Forms.Splitter();
            this.btnGetWsdl = new System.Windows.Forms.Button();
            this.dlgWsdlBrowse = new System.Windows.Forms.OpenFileDialog();
            this.btnWsdlBrowse = new System.Windows.Forms.Button();
            this.dlgSaveMessageToFile = new System.Windows.Forms.SaveFileDialog();
            this.kryptonSplitContainer1 = new ComponentFactory.Krypton.Toolkit.KryptonSplitContainer();
            this.btnSaveMessage = new System.Windows.Forms.Button();
            this.txtMessage = new System.Windows.Forms.TextBox();
            ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel1)).BeginInit();
            this.kryptonSplitContainer1.Panel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel2)).BeginInit();
            this.kryptonSplitContainer1.Panel2.SuspendLayout();
            this.SuspendLayout();
            // 
            // tvwWsdlBrowser
            // 
            this.tvwWsdlBrowser.AutoSize = true;
            this.tvwWsdlBrowser.BackColor = System.Drawing.Color.Transparent;
            this.tvwWsdlBrowser.Location = new System.Drawing.Point(3, 2);
            this.tvwWsdlBrowser.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
            this.tvwWsdlBrowser.Name = "tvwWsdlBrowser";
            this.tvwWsdlBrowser.Size = new System.Drawing.Size(349, 398);
            this.tvwWsdlBrowser.TabIndex = 0;
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(18, 27);
            this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(36, 17);
            this.label1.TabIndex = 0;
            this.label1.Text = "URL";
            // 
            // txtWsdlUrl
            // 
            this.txtWsdlUrl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtWsdlUrl.Location = new System.Drawing.Point(82, 23);
            this.txtWsdlUrl.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
            this.txtWsdlUrl.Name = "txtWsdlUrl";
            this.txtWsdlUrl.Size = new System.Drawing.Size(836, 22);
            this.txtWsdlUrl.TabIndex = 1;
            // 
            // splitter1
            // 
            this.splitter1.Location = new System.Drawing.Point(0, 0);
            this.splitter1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
            this.splitter1.Name = "splitter1";
            this.splitter1.Size = new System.Drawing.Size(4, 536);
            this.splitter1.TabIndex = 2;
            this.splitter1.TabStop = false;
            // 
            // btnGetWsdl
            // 
            this.btnGetWsdl.Location = new System.Drawing.Point(344, 50);
            this.btnGetWsdl.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
            this.btnGetWsdl.Name = "btnGetWsdl";
            this.btnGetWsdl.Size = new System.Drawing.Size(180, 34);
            this.btnGetWsdl.TabIndex = 6;
            this.btnGetWsdl.Text = "Get WSDL";
            this.btnGetWsdl.UseVisualStyleBackColor = true;
            this.btnGetWsdl.Click += new System.EventHandler(this.btnGetWsdl_Click);
            // 
            // dlgWsdlBrowse
            // 
            this.dlgWsdlBrowse.FileName = "openFileDialog1";
            // 
            // btnWsdlBrowse
            // 
            this.btnWsdlBrowse.Location = new System.Drawing.Point(926, 23);
            this.btnWsdlBrowse.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
            this.btnWsdlBrowse.Name = "btnWsdlBrowse";
            this.btnWsdlBrowse.Size = new System.Drawing.Size(52, 21);
            this.btnWsdlBrowse.TabIndex = 7;
            this.btnWsdlBrowse.Text = "...";
            this.btnWsdlBrowse.UseVisualStyleBackColor = true;
            this.btnWsdlBrowse.Click += new System.EventHandler(this.btnWsdlBrowse_Click);
            // 
            // kryptonSplitContainer1
            // 
            this.kryptonSplitContainer1.Cursor = System.Windows.Forms.Cursors.Default;
            this.kryptonSplitContainer1.Location = new System.Drawing.Point(21, 94);
            this.kryptonSplitContainer1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
            this.kryptonSplitContainer1.Name = "kryptonSplitContainer1";
            // 
            // 
            // 
            this.kryptonSplitContainer1.Panel1.Controls.Add(this.tvwWsdlBrowser);
            // 
            // 
            // 
            this.kryptonSplitContainer1.Panel2.Controls.Add(this.btnSaveMessage);
            this.kryptonSplitContainer1.Panel2.Controls.Add(this.txtMessage);
            this.kryptonSplitContainer1.Size = new System.Drawing.Size(978, 411);
            this.kryptonSplitContainer1.SplitterDistance = 361;
            this.kryptonSplitContainer1.TabIndex = 8;
            // 
            // btnSaveMessage
            // 
            this.btnSaveMessage.Location = new System.Drawing.Point(24, 11);
            this.btnSaveMessage.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
            this.btnSaveMessage.Name = "btnSaveMessage";
            this.btnSaveMessage.Size = new System.Drawing.Size(166, 34);
            this.btnSaveMessage.TabIndex = 2;
            this.btnSaveMessage.Text = "Save Message To File";
            this.btnSaveMessage.UseVisualStyleBackColor = true;
            this.btnSaveMessage.Click += new System.EventHandler(this.btnSaveMessage_Click);
            // 
            // txtMessage
            // 
            this.txtMessage.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtMessage.Location = new System.Drawing.Point(24, 42);
            this.txtMessage.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
            this.txtMessage.Multiline = true;
            this.txtMessage.Name = "txtMessage";
            this.txtMessage.ScrollBars = System.Windows.Forms.ScrollBars.Both;
            this.txtMessage.Size = new System.Drawing.Size(567, 344);
            this.txtMessage.TabIndex = 1;
            // 
            // MessageBuilder
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
            this.ClientSize = new System.Drawing.Size(1077, 536);
            this.Controls.Add(this.kryptonSplitContainer1);
            this.Controls.Add(this.btnGetWsdl);
            this.Controls.Add(this.btnWsdlBrowse);
            this.Controls.Add(this.splitter1);
            this.Controls.Add(this.txtWsdlUrl);
            this.Controls.Add(this.label1);
            this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
            this.Name = "MessageBuilder";
            this.Text = "WSDL Sample Message Builder";
            this.Load += new System.EventHandler(this.WsdlBrowser_Load);
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.WsdlBrowser_FormClosing);
            ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel1)).EndInit();
            this.kryptonSplitContainer1.Panel1.ResumeLayout(false);
            this.kryptonSplitContainer1.Panel1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1.Panel2)).EndInit();
            this.kryptonSplitContainer1.Panel2.ResumeLayout(false);
            this.kryptonSplitContainer1.Panel2.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.kryptonSplitContainer1)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        #region "controls"

        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.TextBox txtWsdlUrl;
        private System.Windows.Forms.Splitter splitter1;
        private System.Windows.Forms.Button btnGetWsdl;
        private System.Windows.Forms.OpenFileDialog dlgWsdlBrowse;
        private System.Windows.Forms.Button btnWsdlBrowse;
        private System.Windows.Forms.SaveFileDialog dlgSaveMessageToFile;

        #endregion

        #region "event handlers"
        private void WsdlBrowser_Load(object sender, EventArgs e)
        {
            this.HandleFormLoad();

        }

        private void WsdlBrowser_FormClosing(object sender, FormClosingEventArgs e)
        {
            // Check if the user wants to clean up the cache
        }

        private void btnWsdlBrowse_Click(object sender, EventArgs e)
        {

            DialogResult result = dlgWsdlBrowse.ShowDialog();
            if (result == DialogResult.OK)
            {
                txtWsdlUrl.Text = dlgWsdlBrowse.FileName;
            }

        }

        private void btnGetWsdl_Click(object sender, EventArgs e)
        {
            LoadWsdl();
        }

        private void btnSaveMessage_Click(object sender, EventArgs e)
        {
            this.SaveMessage();
        }

        #endregion

        private ComponentFactory.Krypton.Toolkit.KryptonSplitContainer kryptonSplitContainer1;
        private MockingBird.Studio.UI.UserControls.WsdlTree tvwWsdlBrowser;
        private Button btnSaveMessage;
        private TextBox txtMessage;

    }
}